using System;
namespace AppToolKit.Core.ObjectClone
{
	public class CloneHelper
	{
		public void Clone(ICloneMethod method, ICloneObject o)
		{
			if (method.IsSuppor(o))
			{
				method.Clone(o);
				return;
			}
			throw new NotSupportedException(string.Format("{0}not suppor {1} clone", method.GetType().Name, o.GetType().Name));
		}
	}
}
